//
//  NoteCell.h
//  WOPrototype
//
//  Created by Olof Millberg on 2010-04-16.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol WONoteCellDelegate;

@interface NoteCell : UITableViewCell <UITextViewDelegate>
{
	UITextView *textView;
	UIButton *postButton;
	UIButton *backgroundField;
	BOOL active;
	NSInteger cellHeight;
	id<WONoteCellDelegate> delegate;
}
@property (nonatomic, retain) IBOutlet UITextView *textView;
@property (nonatomic, retain) IBOutlet UIButton *postButton;
@property (nonatomic, retain) IBOutlet UIButton *backgroundField;
@property (nonatomic, assign) id<WONoteCellDelegate> delegate;

//@property (nonatomic, assign) BOOL active;

- (void) setActive:(BOOL)isActive animated:(BOOL)isAnimated;

@end

@protocol WONoteCellDelegate
@optional
- (void)noteCell:(NoteCell *)aNoteCell didChangeHeight:(NSInteger)newHeight;
@end